package com.chy.order_meal.service;

import com.chy.order_meal.dao.TypeDao;
import com.chy.order_meal.po.Type;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TypeService {

    @Autowired
    public TypeDao dao;

    public List<Type> getAll() {
        return dao.findAll();
    }
}
